Replications files for Immigration and public support for political systems in Europe
Christopher Claassen, 2022


The folder includes the following files

1. immigration support tscs analysis PoP.R - this is the R code required to run the analyses presented in the paper

2. EU_migrat_data_PoP.csv - this is the TSCS data required to run the analyses presented in the paper

3. poltrust estimation PoP.R - this is the R code to estimate country-year trust (not required as these estimates are included in EU_migrat_data_PoP.csv)

4. stan.mod6.7.stan - this is the stan model required for (3)

5. pol_trust_marginals_250722_edit.csv  - this is the aggregated trust survey marginals required for (3)


Session info:

R version 4.2.1 (2022-06-23 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 22621)

Matrix products: default

locale:
[1] LC_COLLATE=English_United Kingdom.utf8  LC_CTYPE=English_United Kingdom.utf8    LC_MONETARY=English_United Kingdom.utf8
[4] LC_NUMERIC=C                            LC_TIME=English_United Kingdom.utf8    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] lavaan_0.6-11      systemfit_1.1-26   lmtest_0.9-40      zoo_1.8-10         car_3.0-13         carData_3.0-5      Matrix_1.4-1      
 [8] MASS_7.3-57        plm_2.6-1          psych_2.2.5        viridis_0.6.2      viridisLite_0.4.0  RColorBrewer_1.1-3 ggplot2_3.3.6     
[15] tidyr_1.2.0        dplyr_1.0.9        texreg_1.38.6     

loaded via a namespace (and not attached):
 [1] httr_1.4.3           tmvnsim_1.0-2        Formula_1.2-4        Rdpack_2.3           assertthat_0.2.1     posterior_1.2.1     
 [7] distributional_0.3.0 stats4_4.2.1         tensorA_0.36.2       pbivnorm_0.6.0       numDeriv_2016.8-1.1  pillar_1.7.0        
[13] backports_1.4.1      lattice_0.20-45      glue_1.6.2           digest_0.6.29        rbibutils_2.2.8      checkmate_2.1.0     
[19] colorspace_2.0-3     sandwich_3.0-1       plyr_1.8.7           pkgconfig_2.0.3      purrr_0.3.4          xtable_1.8-4        
[25] mvtnorm_1.1-3        scales_1.2.0         collapse_1.7.6       cmdstanr_0.5.2       tibble_3.1.7         bayesplot_1.9.0     
[31] generics_0.1.2       farver_2.1.0         ellipsis_0.3.2       withr_2.5.0          maxLik_1.5-2         cli_3.3.0           
[37] mnormt_2.0.2         magrittr_2.0.3       crayon_1.5.1         fansi_1.0.3          nlme_3.1-157         dreamerr_1.2.3      
[43] fixest_0.10.4        tools_4.2.1          data.table_1.14.2    lifecycle_1.0.1      stringr_1.4.0        munsell_0.5.0       
[49] compiler_4.2.1       lfe_2.8-8            rlang_1.0.2          grid_4.2.1           ggridges_0.5.3       rstudioapi_0.13     
[55] miscTools_0.6-26     gtable_0.3.0         abind_1.4-5          DBI_1.1.2            R6_2.5.1             gridExtra_2.3       
[61] knitr_1.39           bdsmatrix_1.3-4      utf8_1.2.2           stringi_1.7.6        parallel_4.2.1       Rcpp_1.0.9          
[67] vctrs_0.4.1          tidyselect_1.1.2     xfun_0.31  